package com.koron.workflow.common.exception;

public class WorkflowException extends RuntimeException{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int code;
	
	private String message;
	
	public WorkflowException() {
		
	}

	public WorkflowException(int code, String message) {
		super(message);
		this.code = code;
		this.message = message;
	}
	
	public WorkflowException(String message) {
		super(message);
		this.message = message;
	}

	public WorkflowException(Throwable cause) {
		super(cause);
	}

	public int getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
}
